package IO;

import java.io.File;
import java.io.IOException;

public class IODemo2 {
    public static void main(String[] args) throws IOException {
        File file=new File(".//text.txt");
        //根据 File 对象，⾃动创建⼀个空⽂件,成功返回true
        boolean ret=file.createNewFile();
        System.out.println(ret);
    }
}
